package model

import "time"

type Ecs struct {
	Id        int
	FlavorRef string `json:"flavorRef" gorm:"size:100"`
	ImageRef  string `json:"imageRef" gorm:"size:100"`
	Name      string `json:"name" gorm:"size:100"`
	SubnetId  string `json:"subnet_id" gorm:"size:100"`
	Vpcid     string `json:"vpcid" gorm:"size:100"`
	ServerId  string `gorm:"size:100"`
	CreatedAt time.Time
	UserId    int
}

func (e Ecs) TableName() string {
	return "ecs"
}
